package day5.HomeWork;

public class Bus extends Automobile{
    private int seatCount;

    public Bus() {
    }

    public Bus(String brand, String plateNumber, int seatCount) {
        super(brand, plateNumber);
        this.seatCount = seatCount;
    }

    @Override
    public int getRent(int days) {
        int money = 0;
        if(seatCount<=16){
            money = 400;
        }else {
            money = 600;
        }
        return money*days;
    }
}
